package com.newland.mesdk.demo.moduleinterface;

import java.util.concurrent.TimeUnit;

import com.newland.mtype.module.common.lcd.Color;
import com.newland.mtype.module.common.lcd.DispType;
import com.newland.mtype.module.common.lcd.FlushType;
import com.newland.mtype.module.common.lcd.FontSize;
import com.newland.mtype.module.common.lcd.LCDClass;
import com.newland.mtype.module.common.lcd.LoadMenuResult;
import com.newland.mtype.module.common.lcd.Picture;
import com.newland.mtype.module.common.lcd.Point;
import com.newland.mtype.module.common.lcd.menu.MenuRoot;

/**
 * Created by HJP on 2015/8/12.
 */
public interface LCDInterface {
	public void clearScreen();

	public void disableBackgroundLight();

	public void draw(Picture picture);

	public void drawWithinTime(String words, int showtime);

	public void enableBackgroundLight();

	public void flush();

	public Point getCursorPosition();

	public FontSize getFontSize();

	public LCDClass getLCDClass();

	public String launchMenu(long timeout, TimeUnit timeUnit);

	public LoadMenuResult loadMenu(MenuRoot menuRoot, int macIndex, byte[] macRadom, byte[] mac, long timeout, TimeUnit timeunit);

	public LoadMenuResult loadMenu(MenuRoot menuRoot, long timeout, TimeUnit timeunit);

	public void setCursorPosition(Point p);

	public void setDisplayType(DispType dispType);

	public void setFlushType(FlushType flushType);

	public void setNormalWordsColor(Color color);

	public void setReversalBackgroundColor(Color color);

	public void setReversalWordsColor(Color color);

}
